<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>三行两列宽度固定布局</title>
    <style type="text/css">
        body{
            background: #fff;
            font:13px/1.5 Arial;
            margin: 0;
            padding: 0;
        }
        p {
            text-indent: 10em;
        }
        #header, #pagefooter, #container{
            margin: 0 auto;
            width: 1000px;
            background:#ddd ;
        }
        .rounded{
            width: 100%;
            border: #fff solid 2px;
        }
        .rounded h2{
            background: #888;
            padding:70px 70px 50px;
            margin: 0;
        }
        .rounded .main{
            padding:20px 30px;
            margin: -2em 0 0 0;
        }

        #container{
            position: relative;
        }

        #content{
            position:absolute;
            top:0;
            left:0;
            width: 500px;
            background: cadetblue;
        }
        #content img{
            float: right;
        }
        #side{
            margin: 0 0 0 500px;
            background: cadetblue;
        }
    </style>
</head>
<body>
    <div id="header">
        <div class="rounded">
            <div class="main">
                <p>这里是header区域</p>
            </div>
        </div>
    </div>
    <div id="container">
        <div id="content">
            <div class="rounded">
                <div class="main">
                    <p>这里是主要内容</p>
                </div>
            </div>
        </div>
        <div id="side">
            <div class="rounded">
                <div class="main">
                <p>这里是侧边栏</p>
                </div>
            </div>
        </div>
    </div>
    <div id="pagefooter">
        <div class="rounded">
            <div class="main">
                <p>这里是footer区域，放置版权信息等内容</p>
            </div>
        </div>
    </div>
</body>
</html>